package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 门店自提业务对象 p_store
 *
 * @author ruoyi
 * @date 2022-08-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("门店自提业务对象")
public class PStoreBo extends BaseEntity {

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Integer id;

    /**
     * 门店名称
     */
    @ApiModelProperty(value = "门店名称", required = true)
    @NotBlank(message = "门店名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 简介
     */
    @ApiModelProperty(value = "简介", required = true)
    @NotBlank(message = "简介不能为空", groups = { AddGroup.class, EditGroup.class })
    private String introduction;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码", required = true)
    @NotBlank(message = "手机号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 省市区
     */
    @ApiModelProperty(value = "省市区", required = true)
    @NotBlank(message = "省市区不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址", required = true)
    @NotBlank(message = "详细地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String detailedAddress;

    /**
     * 门店logo
     */
    @ApiModelProperty(value = "门店logo", required = true)
    private String image;

    /**
     * 纬度
     */
    @ApiModelProperty(value = "纬度", required = true)
    private String latitude;

    /**
     * 经度
     */
    @ApiModelProperty(value = "经度", required = true)
    private String longitude;

    /**
     * 核销有效日期
     */
    @ApiModelProperty(value = "核销有效日期", required = true)
    private String validTime;

    /**
     * 每日营业开关时间
     */
    @ApiModelProperty(value = "每日营业开关时间", required = true)
    @NotBlank(message = "每日营业开关时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dayTime;

    /**
     * 是否显示
     */
    @ApiModelProperty(value = "是否显示", required = true)
    private String isShow;


}
